package by.myteam.gonki.states.mainstate;

import java.awt.event.KeyEvent;

import javax.swing.JPanel;

import by.myteam.gonki.gui.MainFrame;
import by.myteam.gonki.gui.view.SelectCarView;
import by.myteam.gonki.util.ResetStateGame;


public class SelectCarState implements IGameState {
	private final JPanel state = new SelectCarView();
	
	@Override
	public void perform() {
		ResetStateGame.INSTANCE.reset();
		MainFrame.INSTANCE.changeState(EGameStates.SELECTCAR.getState());
	}

	@Override
	public JPanel getView() {
		return state;
	}

	@Override
	public void keyPressed(KeyEvent e) {

	}

}
